//
//  LXShoppingCarCommodityViewCell.h
//  绿稀全球购
//
//  Created by 诸葛孔明 on 16/6/2.
//  Copyright © 2016年 SJT. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BaseTableViewCell.h"
#import "LXSteper.h"

@class LXSteper,LXShoppingCarCommodityViewCell;
typedef void(^LXSelectedButtonClick)(id obj);
@protocol LXShoppingCarCommodityViewCellDelegate <MGSwipeTableCellDelegate>
@optional
-(void)LXShoppingCarCommodityViewCell:(LXShoppingCarCommodityViewCell*)cell didClickAddSteper:(LXSteper*)steper;

-(void)LXShoppingCarCommodityViewCell:(LXShoppingCarCommodityViewCell*)cell didClickReduceSteper:(LXSteper*)steper;

-(void)LXShoppingCarCommodityViewCell:(LXShoppingCarCommodityViewCell*)cell product:(Product*)product isSelected:(BOOL)isSelected;

@end



@interface LXShoppingCarCommodityViewCell : MGSwipeTableCell



/**选中按钮回调*/
@property(nonatomic,copy)LXSelectedButtonClick selectedBtnDidClick;

/**
 *  选中按钮
 */
@property (nonatomic,strong) UIButton *selectedBtn;



/**
 *  步进器
 */
@property(nonatomic,strong)LXSteper * steper;



/**商品*/
@property(nonatomic,strong)Product * product;


/**代理指针*/
@property(nonatomic,assign)id<LXShoppingCarCommodityViewCellDelegate>delegate;
@end
